<template>
    <div class="app-container">
        <el-table  :data="list"
         @selection-change="handleSelectionChange">
            <el-table-column type="selection" width="55">
            </el-table-column>
            <el-table-column label="货代公司" align="center" prop="Name" />
            <el-table-column label="公司代码" align="center" prop="Code" />
        </el-table>
    </div>
</template>

<script>
import { getCompany } from '@/api/company.js';


export default {
    // 货代公司
    name: "com",


    data() {
        return {
            checked: null,
            list: [],
            form: {},

        };
    },
    created() {
        this.getList();
    },
    methods: {
        cardRadionChange(row) {
            this.checked = row.code;
            this.$emit("companyC", id)
        },
        getList() {
            getCompany({}).then(res => {
                this.list = res.data.value
            })
        },
        handleSelectionChange(val) {
            this.$emit("companyC",val)
        }
    }
};
</script>
